package com.xjoyt.pay.master.repository;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.master.po.Refund;
import com.xjoyt.pay.repository.Repository;

public interface RefundRepository extends Repository<Refund> {

	@Query(" select (a.money) from Refund a where a.order.id = ?1 and a.success = true ")
	Long sumMoneyCanBackByOrderId(String orderId);
}
